package com.fxyk.webclick.bace;

import org.databene.feed4testng.FeedTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeSuite;

import java.util.concurrent.TimeUnit;

import static com.fxyk.webclick.bace.公共页面父类.get浏览器驱动;
import static com.fxyk.webclick.bace.公共页面父类.set浏览器驱动;

    //父类继承FeedTest方法
public class 测试用例父类 extends FeedTest {
    Logger logger= LoggerFactory.getLogger(测试用例父类.class);

    @BeforeClass
    public void beforeClass() {
        logger.info("打开火狐浏览器");
        set浏览器驱动("Firefox");
    }

    @AfterClass
    public void afterClass() {
        logger.info("关闭火狐浏览器");
        get浏览器驱动().close();
    }

    @BeforeSuite
    public void beforeSuite() {
        logger.info("-----开始测试-----");
    }

    @AfterSuite
    public void afterSuite() {
        logger.info("-----测试结束-----");
    }
}
